<%@ page import="Model.Entity.Commodity" %>
<%@ page import="Model.DAO.CommodityDao" %><%--
  Created by IntelliJ IDEA.
  User: ADMIN
  Date: 2019/1/31
  Time: 19:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String manager=(String)session.getAttribute("username");
    if (manager==null || "".equals(manager)){	//验证用户是否登录
        response.sendRedirect("index.jsp");	//重定向网页到login.jsp页
    }
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%="hello! "%><%if(session.getAttribute("username")!=null){%>
    <%=session.getAttribute("username").toString()%>
    <%}%>
    this user center！！！

    <form action="PostCheck" method="post" enctype="multipart/form-data" >
        商品名字<input type="text" name="name" required="required">
        商品价格<input type="text" name="realprice" required="required" oninput="value=value.replace(/[^\d\.]/g,'')">
        商品描述<input type="text" name="description" required="required">
        商品图片<input type="file" accept="image/jpeg" name="cpic" multiple="multiple">
        种类：
        <select name="category">
            <option value="0">服装</option>
            <option value="1">电子</option>
        </select>
        <input type="submit" value="提交" >
    </form>
</body>
</html>
